package com.atguigu.dao;

import com.atguigu.base.BaseDao;
import com.atguigu.entity.UserFollow;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface UserFollowDao extends BaseDao<UserFollow> {

    UserFollow findByUserIdAndHouseId(@Param("userId") Long userId,
                                             @Param("houseId") Long houseId);

    /**
     * 查询用户的关注列表
     * @param userId
     * @return
     */
    Page<UserFollowVo> findListPage(Long userId);
}
